package com.zrq.services.mybatis_test.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.validation.constraints.NotNull;

/**
 * @Author: zrq
 * @CreateDate: 2020/11/18
 * @Version: 类说明：发送邮件请求值
 */
@Data
@Builder
public class SendMailRequest {

    @ApiModelProperty(value = "发送者",required = true)
    @NotNull(message = "发送者不能为空")
    private String toSend;

    @ApiModelProperty(value = "邮件内容",required = true)
    @NotNull(message = "邮件内容不能为空")
    private String content;

    @ApiModelProperty(value = "邮件标题",required = true)
    @NotNull(message = "邮件标题不能为空")
    private String title;

    @ApiModelProperty(value = "是否是html链接",required = true)
    private Boolean isHtml;

    @Tolerate
    public SendMailRequest() {
    }
}
